package 富婆梦.第一阶段.Java基础视频学习.线程的练习.练习;

/**
 * @ProjectName: java-learning
 * @Package: 富婆梦.第一阶段.线程的练习.练习.TestNotify
 * @ClassName: Demo2
 * @Author: hemengjin
 * @Description:
 * @Date:2021/11/1 19:44
 * @Version: 1.0
 */
public class Demo2 implements Runnable{
    @Override
    public void run() {
        for (int i=0;i<3;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }

    public static void main(String[] args) {
        Demo2 demo2 = new Demo2();
        Thread t = new Thread(demo2);
        t.start();
    }
}
